<?php
/* Smarty version 3.1.33, created on 2018-11-19 16:22:07
  from 'D:\phpstudy\PHPTutorial\WWW\deepeFramework\app\views\cases\user-list.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.33',
  'unifunc' => 'content_5bf272af03ca42_85835195',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '23deb59a06e810aeade834f972ab3f292eb54965' => 
    array (
      0 => 'D:\\phpstudy\\PHPTutorial\\WWW\\deepeFramework\\app\\views\\cases\\user-list.tpl',
      1 => 1541473210,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
    'file:header.tpl' => 1,
    'file:left-sidebar.tpl' => 1,
  ),
),false)) {
function content_5bf272af03ca42_85835195 (Smarty_Internal_Template $_smarty_tpl) {
$_smarty_tpl->_subTemplateRender('file:header.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
$_smarty_tpl->_subTemplateRender("file:left-sidebar.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
?>

			<!-- 内容区域 -->
			<div class="tpl-content-wrapper">
				<div class="row-content am-cf">
					<div class="row">
						<div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
							<div class="widget am-cf">
								<div class="widget-head am-cf">
									<div class="widget-title  am-cf">案件列表</div>
								</div>
								<form class="am-form am-form-inline " style="padding: 10px 0" method="post" action="index.php?action=cases&func=search">
									<div class=" am-form-group am-form-select">
										<select style="width: 100px;" id="doc-select-1" name="option">
											<option value="Name">案件号</option>
											<option value="dealer">承办人</option>
											<option value="status">状态</option>
										</select>
										<span class=" am-form-caret"></span>
									</div>


									<div class="am-form-group">
										<input type="text" name="content" class="" id="doc-ipt-email-1" placeholder="请输入查询你的内容">
									</div>

									<button type="submit" class="am-btn am-btn-default">查询</button>
									<a href="index.php?action=cases&func=addcases">
										<button type="button" class="am-btn am-btn-success">添加案件</button>
									</a>
								</form>
								<div class="widget-body  am-fr">
									<div class="am-u-sm-12 am-u-md-6 am-u-lg-6">
										<div class="am-form-group">
											<div class="am-btn-toolbar">
												<div class="am-btn-group am-btn-group-xs">
													</div>
											</div>
										</div>
									</div>
									<div class="am-u-sm-12">
										<table width="100%" class="am-table am-table-compact am-table-striped tpl-table-black " id="example-r">
											<thead>
												<tr>
													<th>编号</th>
													<th>案件号</th>
													<th>承办人</th>
													<th>接收日期</th>
													<th>完成日期</th>
													<th>计划完成日期</th>
													<th>状态</th>
												</tr>
											</thead>
											<tbody>
												
												<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['res']->value, 'case');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['case']->value) {
?>
													<tr class="<?php if (date('Y-m-d H:i:s',time()) > $_smarty_tpl->tpl_vars['case']->value['except_date']) {?>
								am-danger
									<?php } else { ?>
							am-active
								<?php }?>">
													<td><?php echo $_smarty_tpl->tpl_vars['case']->value['c_id'];?>
</td>
													<td><?php echo $_smarty_tpl->tpl_vars['case']->value['Name'];?>
</td>
													<td><?php echo $_smarty_tpl->tpl_vars['case']->value['dealer'];?>
</td>
													<td><?php echo $_smarty_tpl->tpl_vars['case']->value['receive_date'];?>
</td>
													<td><?php echo $_smarty_tpl->tpl_vars['case']->value['finish_date'];?>
</td>
													<td><?php echo $_smarty_tpl->tpl_vars['case']->value['except_date'];?>
</td>
													<td><?php echo $_smarty_tpl->tpl_vars['case']->value['status'];?>
</td>
													<td>
														<div class="tpl-table-black-operation">
															<a href="index.php?action=cases&func=editeq&c_id=<?php echo $_smarty_tpl->tpl_vars['case']->value['c_id'];?>
" >
																<i class="am-icon-pencil"></i> 编辑
															</a>
															<a href="index.php?action=cases&func=delect&c_id=<?php echo $_smarty_tpl->tpl_vars['case']->value['c_id'];?>
"  class="tpl-table-black-operation-del">
																<i class="am-icon-trash"></i> 删除
															</a>
														</div>
													</td>
												</tr>
												<?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
												

												
												<!-- more data -->
											</tbody>
										</table>
									</div>
									<!-- 简单分页,要另外一种请去20181010日看代码-->
									<div class="am-u-lg-12 am-cf">
										<div class="am-fr">
											<ul class="am-pagination tpl-pagination">
												<?php if ($_smarty_tpl->tpl_vars['page']->value == 1) {?>
													<li class="am-disabled" ><a href='#' >&laquo;</a></li>
												<?php } else { ?>
													<li ><a class="am-active" href="index.php?action=cases&func=index&page=<?php echo $_smarty_tpl->tpl_vars['page']->value-1;?>
">«</a></li>
												<?php }?>
													<li ><a href="index.php?action=cases&func=index&page=<?php echo $_smarty_tpl->tpl_vars['page']->value;?>
"><?php echo $_smarty_tpl->tpl_vars['page']->value;?>
/<?php echo $_smarty_tpl->tpl_vars['count_page']->value;?>
</a></li>
												<?php if ($_smarty_tpl->tpl_vars['page']->value == $_smarty_tpl->tpl_vars['count_page']->value) {?>
													<li class="am-disabled"><a href="#">&raquo;</a></li>
												<?php } else { ?>
													<li><a class="am-active"  href="index.php?action=cases&func=index&page=<?php echo $_smarty_tpl->tpl_vars['page']->value+1;?>
" >»</a></li>
												<?php }?>
											</ul>
										</div>
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
		</div>

		<?php echo '<script'; ?>
 src="<?php echo $_smarty_tpl->tpl_vars['_SOURCEDIR']->value;?>
/js/amazeui.min.js"><?php echo '</script'; ?>
>
		<?php echo '<script'; ?>
 src="<?php echo $_smarty_tpl->tpl_vars['_SOURCEDIR']->value;?>
/js/amazeui.datatables.min.js"><?php echo '</script'; ?>
>
		<?php echo '<script'; ?>
 src="<?php echo $_smarty_tpl->tpl_vars['_SOURCEDIR']->value;?>
/js/dataTables.responsive.min.js"><?php echo '</script'; ?>
>
		<?php echo '<script'; ?>
 src="<?php echo $_smarty_tpl->tpl_vars['_SOURCEDIR']->value;?>
/js/app.js"><?php echo '</script'; ?>
>


	</body>

</html><?php }
}
